package com.sicheng.metadata.se.exception;

import com.sicheng.metadata.juc.cas.User;

/**
 * @author : zsc
 * @date :
 */
public class Ex {
    public static void main(String[] args) {
        //
        try {
            System.out.println("@Before");
            System.out.println("target======" + add(9, 1));
            System.out.println("@AfterReturn");
        } catch (Exception e) {
            System.out.println("@AfterThrowing");
            e.printStackTrace();
        } finally {
            System.out.println("@After");
            System.out.println(new User("zsc",21));
        }
    }

    public static int add(int a, int b) {
        return a / b;
    }
}
